package com.story.modular.app.service;

import main.java.com.UpYun.FolderItem;
import main.java.com.upyun.UpException;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 * @decription
 * @Date 2017-12-27 13:19
 */
public interface UpyunService {

    public List<FolderItem> readDir(String path) throws IOException, UpException;

    public String mkdir(String path) throws IOException, UpException;

    public boolean rmDir(String path) throws IOException, UpException;

    public String uploadFile(String datas) throws IOException, UpException;

    public String uploadFile(String localFilePath,String fileType) throws IOException, UpException;

    public String uploadFile(File file,String fileType) throws IOException, UpException;

    public String uploadFile(InputStream inputStream, String fileType) throws IOException, UpException;

    public Map<String,String> getFileInfo(String filePath) throws IOException, UpException;

    public long getUsage() throws IOException, UpException;

    public long getFolderUsage(String path) throws IOException, UpException;

    public String getTokenSign(String path,long expireTime);
}
